<html><head><title>AttachEntityObject</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">AttachEntityObject()</font></b></p>
<p><b>Syntax</b></p><blockquote>
<font color="#006666"><b>AttachEntityObject</b></font>(#Entity, Bone$, ObjectID [, x, y, z, Pitch, Roll, Yaw])</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Attach an existing object to an entity bone. An object can be detached from an entity with <a href="detachentityobject.html">DetachEntityObject()</a>. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Entity</i></td>
<td width="90%"> 
The entity to use. 

</td></tr>
<tr><td><i>Bone$</i></td>
<td> 
The bone name in the OGRE mesh. If the bone name is empty, then the object is not attached to a bone 
but directly to the entity. 

</td></tr>
<tr><td><i>ObjectID</i></td>
<td> 
The object to attach. It can be one of the following types: 
<pre><font face="Courier New, Courier, mono"size="2">  - Entity : use <a href="entityid.html">EntityID()</a> as 'ObjectID'.
  - Camera : use <a href="../camera/cameraid.html">CameraID()</a> as 'ObjectID'.
  - Light  : use <a href="../light/lightid.html">LightID()</a> as 'ObjectID'.
  - BillboardGroup : use <a href="../billboard/billboardgroupid.html">BillboardGroupID()</a> as 'ObjectID'.
  - ParticleEmitter: use <a href="../particle/particleemitterid.html">ParticleEmitterID()</a> as 'ObjectID'.
</font></pre>

</td></tr>
<tr><td><i>x, y, z (optional)</i></td>
<td> 
The relative offset position of the attached object. 

</td></tr>
<tr><td><i>Pitch (optional)</i></td>
<td> 
The pitch to apply to the attached object. 

</td></tr>
<tr><td><i>Roll (optional)</i></td>
<td> 
The roll to apply to the attached object. 

</td></tr>
<tr><td><i>Yaw (optional)</i></td>
<td> 
The yaw to apply to the attached object. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>
None.


</blockquote><p><b>See Also</b></p><blockquote>

<a href="detachentityobject.html">DetachEntityObject()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=applyentityimpulse.html>ApplyEntityImpulse()</a> - <a href=index.html>Entity Index</a> - <a href=copyentity.html>CopyEntity()</a> ->

</body></html>